<%= form_for(@answer_content) do |f| %>
  <% if @answer_content.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@answer_content.errors.count, "error") %> prohibited this answer_content from being saved:</h2>

      <ul>
      <% @answer_content.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :content %><br />
    <% options = Content.all(:order => "name").collect {|content| [content.name,content.id]} %>
    <%= select(:answer_content, :content_id , options, :prompt => ">> Choose <<") %>
  </div>
  <div class="field">
    <%= f.label :answer %><br />
    <% options = Answer.all(:order => "delivered_at").collect {|answer| [answer.user.name,answer.id]} %>
    <%= select(:answer_content, :answer_id , options, :prompt => ">> Choose <<") %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
